﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="stu_list.aspx.cs" Inherits="Com.CMS263.Web.manage.GuestManage.stu_list" %>

<%@ Import Namespace="Com.CMS263.PO" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>后台-投票/调查系统</title>
    <link href="/manage/css/common.css" rel="stylesheet" type="text/css" />
    <link href="/manage/css/main.css" rel="stylesheet" type="text/css" />
    <link href="/manage/css/box.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript" src="/manage/js/common.js"></script>

    <script language="javascript" type="text/javascript" src="/manage/js/pager.js"></script>

    <script language="javascript" type="text/javascript" src="/manage/js/jquery-1.4.2.min.js"></script>

    <script type="text/javascript" language="javascript">
        function Del(id, obj) {
            if (confirm("确认删除该条数据吗")) {
                $.post("action.aspx?op=del", { id: id }, function(data) {
                    if (data == '1') {
                        alert("删除成功");
                        $(obj).parent().parent().remove();
                    }
                    else {
                        alert("删除失败");
                    }
                })
            }

        }
    </script>

</head>
<body>
    <form id="form1" name="form1" runat="server" action="" method="post" onsubmit="javascript:if(checkForm()){this.submit();};">
    <div class="main">
        <div class="mainMenu">
            <div class="mainMenuList">
                <ul>
                    <li><a href="stu_add.aspx"><b>添加学生信息</b><span></span></a></li>
                    <li class="s"><a><b>学生列表</b><span></span></a></li>
                </ul>
            </div>
        </div>
        <div class="mainContent">
            <div class="productSearch">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
                </table>
            </div>
            <div class="productList">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table2">
                    <tr>
                        <th width="40" class="c">
                            学号
                        </th>
                        <th class="c" width="100">
                            姓名
                        </th>
                        <th class="c" width="50">
                            班级
                        </th>
                        <th class="c" width="100">
                            家长电话
                        </th>
                        <th class="c" width="100">
                            头像
                        </th>
                        <th class="c" width="100">
                            考勤记录
                        </th>
                        
                        <th width="120" class="c">
                            操作
                        </th>
                    </tr>
                    <% foreach (StudentInfo vt in prodlist)
                       {%>
                    <tr>
                        <td class="c">
                            <%=vt.StuNum%>
                        </td>
                        <td class="c">
                            <%=vt.RealName%>
                        </td>
                        <td class="c">
                            <%=vt.ClassName%>
                        </td>
                        <td class="c">
                            <%=vt.ParentMobilePhone %>
                        </td>
                        <td class="c">
                           <img style="width:100px;height:100px" src="/artupfile/<%=vt.HeadImage %>" /> 
                        </td>
                        <td class="c" style="color: Red">
                          <a href="study_list.aspx?stuid=<%=vt.Id %>&stupage=<%=page %>">  考勤记录
                        </td>
                       
                        <td class="c">
                        <a style="cursor: pointer" onclick="Del(<%=vt.Id %>,this)" class="c369">删除</a><br />
                            <a href="stu_edit.aspx?id=<%=vt.Id %>&page=<%=page %>" class="c369">编辑</a>
                        </td>
                    </tr>
                    <%} %>
                    <tr>
                        <td colspan="8">
                            <div style="float: right; margin-right: 100px">
                                <%=GetPager()%></div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
